<?xml version="1.0" encoding="UTF-8"?>
<!-- 
    Document   : RoomProperties
    Created on : 17 juil. 2008, 20:16:03
    Author     : loicpark
-->
<jsp:root version="2.1" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:webuijsf="http://www.sun.com/webui/webuijsf">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
        <webuijsf:page id="page1">
            <webuijsf:html id="html1">
                <webuijsf:head id="head1">
                    <webuijsf:link id="link1" url="/resources/stylesheet.css"/>
                </webuijsf:head>
                <webuijsf:body id="body1" style="-rave-layout: grid">
                    <webuijsf:form id="form1">
                        <webuijsf:panelLayout id="lopRoomProperties" style="height: 190px; left: 24px; top: 24px; position: absolute; width: 646px; -rave-layout: grid">
                            <webuijsf:label id="label1" style="left: 24px; top: 48px; position: absolute" text="Chambre de l'hotel :"/>
                            <webuijsf:label binding="#{screens$RoomProperties.lblNomHotel}" id="lblNomHotel"
                                style="color: blue; font-size: 14px; left: 168px; top: 48px; position: absolute; width: 119px" text="#{screens$RoomProperties.hotelName}"/>
                            <webuijsf:label for="tbRoomNumber" id="label2" style="left: 24px; top: 96px; position: absolute" text="Numéro de chambre :"/>
                            <webuijsf:textField binding="#{screens$RoomProperties.tbRoomNumber}" id="tbRoomNumber" required="true" style="left: 168px; top: 96px; position: absolute"/>
                            <webuijsf:label for="ddlRoomType" id="label3" style="left: 24px; top: 120px; position: absolute" text="Type de chambre :"/>
                            <webuijsf:dropDown binding="#{screens$RoomProperties.ddlRoomType}" id="ddlRoomType" items="#{ApplicationBean.roomType}"
                                required="true" style="left: 168px; top: 120px; position: absolute"/>
                            <webuijsf:button actionExpression="#{screens$RoomProperties.btEnregistrer_action}" binding="#{screens$RoomProperties.btEnregistrer}"
                                id="btEnregistrer" mini="true" primary="true" style="height: 24px; left: 23px; top: 168px; position: absolute; width: 71px" text="Enregistrer"/>
                            <webuijsf:hiddenField id="hfAction"/>
                            <webuijsf:alert binding="#{screens$RoomProperties.alertMessages}" id="alertMessages" style="height: 69px; left: 336px; top: 72px; position: absolute; width: 287px"/>
                            <webuijsf:hyperlink id="hyperlink1" style="left: 456px; top: 0px; position: absolute; width: 152px"
                                text="Retour à la liste des hotels" url="http://localhost:8080/CentralHotelUIWeb/uiweb/screens/HotelList.jsp"/>
                            <webuijsf:hyperlink binding="#{screens$RoomProperties.lnkRoomList}" id="lnkRoomList"
                                style="left: 264px; top: 0px; position: absolute" text="Retour à la liste des chambres" url="http://localhost:8080/CentralHotelUIWeb/uiweb/screens/HotelProperties.jsp"/>
                            <webuijsf:hyperlink id="lnkAccount" style="left: 24px; top: 0px; position: absolute; width: 121px" text="Consulter mes infos" url="http://localhost:8080/CentralHotelUIWeb/uiweb/screens/HotelManagerAccount.jsp"/>
                        </webuijsf:panelLayout>
                    </webuijsf:form>
                    <webuijsf:form id="form2">
                        <webuijsf:panelLayout id="lopRoomPrices" style="height: 478px; left: 24px; top: 240px; position: absolute; width: 646px; -rave-layout: grid">
                            <webuijsf:label id="label4" style="color: blue; font-size: 14px; left: 24px; top: 0px; position: absolute" text="Tarifs de la chambre"/>
                            <webuijsf:panelLayout binding="#{screens$RoomProperties.lopAddRoomPrice}" id="lopAddRoomPrice"
                                style="height: 165px; left: 0px; top: 24px; position: absolute; width: 645px; -rave-layout: grid" visible="true">
                                <webuijsf:label for="tbRoomPrice" id="label6" style="height: 15px; left: 24px; top: 72px; position: absolute" text="Tarif par nuité :"/>
                                <webuijsf:label id="label5" style="left: 24px; top: 24px; position: absolute" text="Ajout d'un tarif pour une période"/>
                                <webuijsf:textField binding="#{screens$RoomProperties.tbRoomPrice}" id="tbRoomPrice" required="true" style="left: 144px; top: 72px; position: absolute"/>
                                <webuijsf:label for="tbStartPeriod" id="label7" style="left: 312px; top: 48px; position: absolute" text="Début de la période :"/>
                                <webuijsf:label for="tbEndPeriod" id="label8" style="left: 312px; top: 72px; position: absolute" text="Fin de la période :"/>
                                <webuijsf:button actionExpression="#{screens$RoomProperties.btEnregistrerTarif_action}"
                                    binding="#{screens$RoomProperties.btEnregistrerTarif}" id="btEnregistrerTarif" mini="true" primary="true"
                                    style="height: 23px; left: 23px; top: 120px; position: absolute; width: 95px" text="Enregistrer le tarif"/>
                                <webuijsf:calendar binding="#{screens$RoomProperties.tbStartPeriod}" id="tbStartPeriod" required="true" style="left: 456px; top: 48px; position: absolute"/>
                                <webuijsf:calendar binding="#{screens$RoomProperties.tbEndPeriod}" id="tbEndPeriod" required="true" style="position: absolute; left: 456px; top: 72px"/>
                                <webuijsf:alert binding="#{screens$RoomProperties.alertPrice}" id="alertPrice" style="height: 45px; left: 312px; top: 120px; position: absolute; width: 285px"/>
                            </webuijsf:panelLayout>
                            <webuijsf:table augmentTitle="false" binding="#{screens$RoomProperties.tableRoomPrices}" id="tableRoomPrices"
                                style="height: 100px; left: 24px; top: 192px; position: absolute" title="Liste des tarifs pour les différentes périodes" width="575">
                                <webuijsf:tableRowGroup binding="#{screens$RoomProperties.tableRowRoomPrices}" emptyDataMsg="Aucun tarif fixé !"
                                    id="tableRowRoomPrices" rows="5" sourceData="#{SessionBean.pricePerRoom}" sourceVar="currentRow">
                                    <webuijsf:tableColumn headerText="Période début" id="tableColumn2" sort="periodStart">
                                        <webuijsf:staticText id="staticText2" text="#{currentRow.value['periodStart']}"/>
                                    </webuijsf:tableColumn>
                                    <webuijsf:tableColumn headerText="Période fin" id="tableColumn1" sort="periodEnd">
                                        <webuijsf:staticText id="staticText1" text="#{currentRow.value['periodEnd']}"/>
                                    </webuijsf:tableColumn>
                                    <webuijsf:tableColumn headerText="Prix" id="tableColumn3" sort="price">
                                        <webuijsf:staticText id="staticText3" text="#{currentRow.value['price']}"/>
                                    </webuijsf:tableColumn>
                                    <webuijsf:tableColumn headerText="Supprimer" id="tableColumn4">
                                        <webuijsf:button actionExpression="#{screens$RoomProperties.btDeletePrice_action}"
                                            binding="#{screens$RoomProperties.btDeletePrice}" id="btDeletePrice" text="Suppr"/>
                                    </webuijsf:tableColumn>
                                </webuijsf:tableRowGroup>
                            </webuijsf:table>
                        </webuijsf:panelLayout>
                    </webuijsf:form>
                </webuijsf:body>
            </webuijsf:html>
        </webuijsf:page>
    </f:view>
</jsp:root>
